<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <?php echo $this->headTitle('RabbitCMS - Administrator Login', 'SET'); ?>
        <link rel="stylesheet" type="text/css" href="<?php echo $this->APP_STATIC_SERVER ?>/skins/admin/default/css/login.css"/>
        <script type="text/javascript" src="<?php echo $this->APP_STATIC_SERVER ?>/public/js/jquery.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
                $("#btnSubmit").click(function (){
                    var frm= document.getElementById("frmAdminLogon");
                    var username = frm.username.value;
                    var password = frm.password.value;
                    var msg = "";
                    if(username==""){
                        msg+= "Xin hãy điền tên đăng nhập!\n";
                    }
                    if(password==""){
                        msg+= "Xin hãy điền mật khẩu!";
                    }
                    if(msg !=""){
                        alert(msg);
                        return false;
                    }else{
                        frm.submit();
                    }
                });
            });
        </script>
    </head>
    <body>
        <div id="page">
            <div id="logon">
                <h2>Administrator Login</h2>
                    <?php echo $this->flashMessenger(); ?>
                <div id="logo">
                    <a href="http://idgit.com.vn" title="Go to IDG-IT">
                        <img src="<?php echo $this->APP_STATIC_SERVER; ?>/skins/admin/default/images/idglogo.jpg" alt="http://idgit.com.vn" width="100%"/>
                    </a>
                </div>
                <form id="frmAdminLogon" enctype="application/x-www-form-urlencoded" action="" method="post">
                    <div class="row">
                        <label for="username" class="required">Tên sử dụng:</label>
                        <input type="text" name="username" id="username" value="" size="20" />
                    </div>
                    <div class="row">
                        <label for="password" class="required">Mật khẩu:</label>
                        <input type="password" name="password" id="password" value="" size="20" />
                    </div>
                    <input type="submit" name="btnSubmit" id="btnSubmit" value="Đăng nhập" /></form>
            </div>
        </div>
    </body>
</html>

